package com.iclippi.client;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("clipboard")
public interface ClipboardService extends RemoteService {
	/**
	 * Return the content of a clipboard by its name
	 * @param clipboardName
	 * @return clipboard content
	 */
	ClipboardLoadData clipboardLoad(String clipboardName);
	
	/**
	 * Set the clipboard content by its name
	 * @param clipboardName
	 * @param content
	 * @return version of clipboard
	 */
	long clipboardSave(String clipboardName, String content);
	
	/**
	 * Get the version of a certain clipboard
	 * @param clipboardName
	 * @return version
	 */
	long clipboardGetVersion(String clipboardName);
}
